package com.xszx.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@CrossOrigin
public class testController {
	
	@RequestMapping("/index")
	public String toIndex(HttpServletRequest request,Model model) {
		
	
		//request.setAttribute("name", "jom");
		model.addAttribute("name", "tom");
		return "index.html";
		
	}

}
